<!DOCTYPE html>
<html lang="es">
<head>
	<meta charset="utf-8">
	<title><?php echo $seo['titulo'];?></title>
	<meta name="description" content="<?php echo (isset($seo['description'])? $seo['description']: ''); ?>">
	
	<?php
		if(isset($this->carabiner)){
			$this->carabiner->display('css');
			$this->carabiner->display('js');
		}
	?>
	<script type="text/javascript" charset="UTF-8">
		var base_url = "<?php echo base_url();?>";
	</script>
</head>
<body>

<div id="header">
	<div class="conte">
		<a href="<?php echo base_url();?>" class="logo f-l">
			<img width="116" height="116" src="<?php echo base_url('application/images/logo.png') ?>" alt="Tienda de conocimiento Capp">
		</a>
		<div class="titulo f-l"> 
			<img class="head_tit" width="451" height="47" src="<?php echo base_url('application/images/head_titulo.png'); ?>">

			<div class="head_slogan slides">
				<div class="slides_container">
					<img width="242" height="20" src="<?php echo base_url('application/images/slogan1.png'); ?>">
					<img width="242" height="20" src="<?php echo base_url('application/images/slogan2.png'); ?>">
					<img width="242" height="20" src="<?php echo base_url('application/images/slogan3.png'); ?>">
					<img width="242" height="20" src="<?php echo base_url('application/images/slogan4.png'); ?>">
					<img width="242" height="20" src="<?php echo base_url('application/images/slogan5.png'); ?>">
					<img width="242" height="20" src="<?php echo base_url('application/images/slogan6.png'); ?>">
				</div>
			</div>

		</div>

		<?php if ($this->session->userdata('id_usuario')) { ?>
			<!-- user dropdown starts -->
				<div class="btn-group pull-right" >
					<a class="btn dropdown-toggle btn-<?php echo $this->session->userdata('tipo'); ?>" data-toggle="dropdown" href="#">
						<i class="icon-user icon-blank"></i><span class="hidden-phone"> <?php echo $this->session->userdata('nombre'); ?></span>
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="javascript:show_perfil();void(0);">Perfil</a></li>
						<li class="divider"></li>
				<?php if ($this->session->userdata('acceso') == 'admin') { ?>
						<li><a href="<?php echo base_url('tic/'); ?>">Acceso tic</a></li>
						<li class="divider"></li>
				<?php } ?>
						<li><a href="<?php echo base_url('home/logout/') ?>">Cerrar sesión</a></li>
					</ul>
				</div>
				<!-- user dropdown ends -->

			<?php } 
			 else { ?>
				<div class="login_free f-r">
					<form action="<?php echo base_url('home/');?>" method="post">
						<span>Acceso gratuito</span>
						<input type="text" name="email" placeholder="correo electrónico">
						<input type="password" name="password" placeholder="contraseña">
						<input type="submit" name="free" value=">">
						<label for="no_csession1" class="f-l"><input type="checkbox" name="no_csession" id="no_csession1"> No cerrar sesión</label>
					</form>
				</div>
				<div class="login_tic f-r">
					<form action="<?php echo base_url('home/');?>" method="post">
						<span>Acceso <strong>tic</strong></span>
						<input type="text" name="email" placeholder="correo electrónico">
						<input type="password" name="password" placeholder="contraseña">
						<input type="submit" name="tic" value=">">
						<label for="no_csession" class="f-l"><input type="checkbox" name="no_csession" id="no_csession"> No cerrar sesión</label>
					</form>
				</div>
			<?php } ?>
			
		<div class="clear"></div>
	</div>
</div>